<include file="Public:head" />
<style>

    .table-striped tr  .td_dan{
        line-height: 30px;text-align: right;width: 50px
    }
    .width20{
        width: 260px;
    }
</style>
<body class="overflow-hidden">
<div class="wrapper preload">
    <include file="Public:header" />
    <include file="Public:left" />
    <div class="main-container">
        <div class="padding-md">
            <div class="row">
                <div class="col-sm-12">
                    <div class="page-title">
                        菜单{$info['pid']?'编辑':'添加'}
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="smart-widget widget-green">
                        <form action="{:U('')}" method="post" class="form_admin13">
                            <table class="table table-striped no-margin" >
                                <tr >
                                    <td  style="width: 10%;text-align: right;line-height: 34px">标题</td>
                                    <td >
                                        <input type="text" class="form-control width20" name="title" value="{$info.title|default=''}">
                                        <span style="line-height: 34px">（用于后台显示的配置标题）</span>
                                    </td>
                                </tr>
                                <tr >
                                    <td  style="width: 10%;text-align: right;line-height: 34px">排序</td>
                                    <td >
                                        <input type="text" class="form-control width20" name="sort" value="{$info.sort|default=0}">
                                        <span style="line-height: 34px">（用于分组显示的顺序）</span>
                                    </td>
                                </tr>
                                <tr >
                                    <td  style="width: 10%;text-align: right;line-height: 34px">链接</td>
                                    <td >
                                        <input type="text" class="form-control width20" name="url" value="{$info.url|default=''}">
                                        <span style="line-height: 34px">（U函数解析的URL或者外链）</span>
                                    </td>
                                </tr>
                                <tr >
                                    <td  style="width: 10%;text-align: right;line-height: 34px">上级菜单</td>
                                    <td >
                                        <select name="pid" class="form-control width20">
                                            <volist name="Menus" id="menu">
                                                <option value="{$menu.id}">{$menu.title_show}</option>
                                            </volist>
                                        </select>
                                        <span style="line-height: 34px">（所属的上级菜单）</span>
                                    </td>
                                </tr>
                                <tr >
                                    <td  style="width: 10%;text-align: right;line-height: 34px">分组</td>
                                    <td >
                                        <input type="text" class="form-control width20" name="group" value="{$info.group|default=''}">
                                        <span style="line-height: 34px">（用于左侧分组二级菜单）</span>
                                    </td>
                                </tr>
                                <tr >
                                    <td  style="width: 10%;text-align: right;line-height: 34px">是否隐藏</td>
                                    <td >
                                        <span style="line-height: 34px">
                                            <input type="radio" name="hide" value="1">是
                                            <input type="radio" name="hide" value="0">否
                                        </span>
                                    </td>
                                </tr>
                                <tr >
                                    <td  style="width: 10%;text-align: right;line-height: 34px">仅开发者模式可见</td>
                                    <td >
                                        <span style="line-height: 34px">
                                            <input type="radio" name="is_dev" value="1">是
                                            <input type="radio" name="is_dev" value="0">否
                                        </span>

                                    </td>
                                </tr>
                                <tr >
                                    <td  style="width: 10%;text-align: right;line-height: 34px">说明</td>
                                    <td >
                                        <textarea class="form-control width20" name="tip" id="" cols="30" rows="10">{$info.tip|default=''}</textarea>
                                        <span style="line-height: 34px">（菜单详细说明）</span>
                                    </td>
                                </tr>
                                <tr class="result_list">
                                    <td>&nbsp;</td>
                                    <td>
                                        <input type="hidden" name="id" value="{$info.id|default=''}">
                                        <input type="hidden" name="module" value="{$info.module|default=''}">
                                        <button class="action-button ajax-post" target-form="form_admin13" type="submit">保存</button>
                                        <button class="action-button" type="button" onclick="javascript:history.back(-1);return false;">返回</button>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div><!-- ./smart-widget -->
                </div><!-- ./col -->
            </div><!-- ./row -->
        </div><!-- ./padding-md -->
    </div><!-- /main-container -->
    <include file="Public:foot" />
</div><!-- /wrapper -->
<!--<include file="Public/base_fc" />-->
<a href="#" class="scroll-to-top hidden-print"><i class="fa fa-chevron-up fa-lg"></i></a>
</body>
</html>
<block name="script">
    <script>
        Think.setValue("pid", {$info.pid|default = 0});
        Think.setValue("hide", {$info.hide|default = 0});
        Think.setValue("is_dev", {$info.is_dev|default = 0});
        $(function(){
            highlight_nav2('{:U("Menus/menuList")}');

        })
    </script>
</block>
